Optimal. Leaf size=327 \[ -\frac {1}{4} (a-i b)^{4/3} x-\frac {1}{4} (a+i b)^{4/3} x-\frac {i \sqrt {3} (a-i b)^{4/3} \text {ArcTan}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a-i b}}}{\sqrt {3}}\right )}{2 d}+\frac {i \sqrt {3} (a+i b)^{4/3} \text {ArcTan}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a+i b}}}{\sqrt {3}}\right )}{2 d}+\frac {i (a-i b)^{4/3} \log (\cos (c+d x))}{4 d}-\frac {i (a+i b)^{4/3} \log (\cos (c+d x))}{4 d}+\frac {3 i (a-i b)^{4/3} \log \left (\sqrt [3]{a-i b}-\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}-\frac {3 i (a+i b)^{4/3} \log \left (\sqrt [3]{a+i b}-\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}+\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 327, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 7, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {3563, 3620,
3618, 59, 631, 210, 31} \begin {gather*} -\frac {i \sqrt {3} (a-i b)^{4/3} \text {ArcTan}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a-i b}}}{\sqrt {3}}\right )}{2 d}+\frac {i \sqrt {3} (a+i b)^{4/3} \text {ArcTan}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a+i b}}}{\sqrt {3}}\right )}{2 d}+\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}+\frac {3 i (a-i b)^{4/3} \log \left (-\sqrt [3]{a+b \tan (c+d x)}+\sqrt [3]{a-i b}\right )}{4 d}-\frac {3 i (a+i b)^{4/3} \log \left (-\sqrt [3]{a+b \tan (c+d x)}+\sqrt [3]{a+i b}\right )}{4 d}+\frac {i (a-i b)^{4/3} \log (\cos (c+d x))}{4 d}-\frac {i (a+i b)^{4/3} \log (\cos (c+d x))}{4 d}-\frac {1}{4} x (a-i b)^{4/3}-\frac {1}{4} x (a+i b)^{4/3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 59
Rule 210
Rule 631
Rule 3563
Rule 3618
Rule 3620
Rubi steps
\begin {align*} \int (a+b \tan (c+d x))^{4/3} \, dx &=\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}+\int \frac {a^2-b^2+2 a b \tan (c+d x)}{(a+b \tan (c+d x))^{2/3}} \, dx\\ &=\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}+\frac {1}{2} (a-i b)^2 \int \frac {1+i \tan (c+d x)}{(a+b \tan (c+d x))^{2/3}} \, dx+\frac {1}{2} (a+i b)^2 \int \frac {1-i \tan (c+d x)}{(a+b \tan (c+d x))^{2/3}} \, dx\\ &=\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}+\frac {\left (i (a-i b)^2\right ) \text {Subst}\left (\int \frac {1}{(-1+x) (a-i b x)^{2/3}} \, dx,x,i \tan (c+d x)\right )}{2 d}-\frac {\left (i (a+i b)^2\right ) \text {Subst}\left (\int \frac {1}{(-1+x) (a+i b x)^{2/3}} \, dx,x,-i \tan (c+d x)\right )}{2 d}\\ &=-\frac {1}{4} (a-i b)^{4/3} x-\frac {1}{4} (a+i b)^{4/3} x+\frac {i (a-i b)^{4/3} \log (\cos (c+d x))}{4 d}-\frac {i (a+i b)^{4/3} \log (\cos (c+d x))}{4 d}+\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}-\frac {\left (3 i (a-i b)^{4/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{a-i b}-x} \, dx,x,\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}-\frac {\left (3 i (a-i b)^{5/3}\right ) \text {Subst}\left (\int \frac {1}{(a-i b)^{2/3}+\sqrt [3]{a-i b} x+x^2} \, dx,x,\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}+\frac {\left (3 i (a+i b)^{4/3}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [3]{a+i b}-x} \, dx,x,\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}+\frac {\left (3 i (a+i b)^{5/3}\right ) \text {Subst}\left (\int \frac {1}{(a+i b)^{2/3}+\sqrt [3]{a+i b} x+x^2} \, dx,x,\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}\\ &=-\frac {1}{4} (a-i b)^{4/3} x-\frac {1}{4} (a+i b)^{4/3} x+\frac {i (a-i b)^{4/3} \log (\cos (c+d x))}{4 d}-\frac {i (a+i b)^{4/3} \log (\cos (c+d x))}{4 d}+\frac {3 i (a-i b)^{4/3} \log \left (\sqrt [3]{a-i b}-\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}-\frac {3 i (a+i b)^{4/3} \log \left (\sqrt [3]{a+i b}-\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}+\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}+\frac {\left (3 i (a-i b)^{4/3}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a-i b}}\right )}{2 d}-\frac {\left (3 i (a+i b)^{4/3}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a+i b}}\right )}{2 d}\\ &=-\frac {1}{4} (a-i b)^{4/3} x-\frac {1}{4} (a+i b)^{4/3} x-\frac {i \sqrt {3} (a-i b)^{4/3} \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a-i b}}}{\sqrt {3}}\right )}{2 d}+\frac {i \sqrt {3} (a+i b)^{4/3} \tan ^{-1}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a+i b}}}{\sqrt {3}}\right )}{2 d}+\frac {i (a-i b)^{4/3} \log (\cos (c+d x))}{4 d}-\frac {i (a+i b)^{4/3} \log (\cos (c+d x))}{4 d}+\frac {3 i (a-i b)^{4/3} \log \left (\sqrt [3]{a-i b}-\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}-\frac {3 i (a+i b)^{4/3} \log \left (\sqrt [3]{a+i b}-\sqrt [3]{a+b \tan (c+d x)}\right )}{4 d}+\frac {3 b \sqrt [3]{a+b \tan (c+d x)}}{d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.82, size = 365, normalized size = 1.12 \begin {gather*} \frac {(i a+b) \left (2 \sqrt [3]{a-i b} \log \left (\sqrt [3]{a-i b}-\sqrt [3]{a+b \tan (c+d x)}\right )-\sqrt [3]{a-i b} \left (2 \sqrt {3} \text {ArcTan}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a-i b}}}{\sqrt {3}}\right )+\log \left ((a-i b)^{2/3}+\sqrt [3]{a-i b} \sqrt [3]{a+b \tan (c+d x)}+(a+b \tan (c+d x))^{2/3}\right )\right )+6 \sqrt [3]{a+b \tan (c+d x)}\right )-(i a-b) \left (2 \sqrt [3]{a+i b} \log \left (\sqrt [3]{a+i b}-\sqrt [3]{a+b \tan (c+d x)}\right )-\sqrt [3]{a+i b} \left (2 \sqrt {3} \text {ArcTan}\left (\frac {1+\frac {2 \sqrt [3]{a+b \tan (c+d x)}}{\sqrt [3]{a+i b}}}{\sqrt {3}}\right )+\log \left ((a+i b)^{2/3}+\sqrt [3]{a+i b} \sqrt [3]{a+b \tan (c+d x)}+(a+b \tan (c+d x))^{2/3}\right )\right )+6 \sqrt [3]{a+b \tan (c+d x)}\right )}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.21, size = 89, normalized size = 0.27
method | result | size |
derivativedivides | \(\frac {3 b \left (\left (a +b \tan \left (d x +c \right )\right )^{\frac {1}{3}}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{6}-2 a \,\textit {\_Z}^{3}+a^{2}+b^{2}\right )}{\sum }\frac {\left (2 \textit {\_R}^{3} a -a^{2}-b^{2}\right ) \ln \left (\left (a +b \tan \left (d x +c \right )\right )^{\frac {1}{3}}-\textit {\_R} \right )}{\textit {\_R}^{5}-\textit {\_R}^{2} a}\right )}{6}\right )}{d}\) | \(89\) |
default | \(\frac {3 b \left (\left (a +b \tan \left (d x +c \right )\right )^{\frac {1}{3}}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{6}-2 a \,\textit {\_Z}^{3}+a^{2}+b^{2}\right )}{\sum }\frac {\left (2 \textit {\_R}^{3} a -a^{2}-b^{2}\right ) \ln \left (\left (a +b \tan \left (d x +c \right )\right )^{\frac {1}{3}}-\textit {\_R} \right )}{\textit {\_R}^{5}-\textit {\_R}^{2} a}\right )}{6}\right )}{d}\) | \(89\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 16583 vs.
\(2 (235) = 470\).
time = 103.07, size = 16583, normalized size = 50.71 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tan {\left (c + d x \right )}\right )^{\frac {4}{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 7.50, size = 924, normalized size = 2.83 \begin {gather*} \ln \left (a\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}-b\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}\,1{}\mathrm {i}+d\,{\left (-\frac {{\left (a-b\,1{}\mathrm {i}\right )}^4\,1{}\mathrm {i}}{d^3}\right )}^{1/3}\,1{}\mathrm {i}\right )\,{\left (-\frac {a^4\,1{}\mathrm {i}+4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}-4\,a\,b^3+b^4\,1{}\mathrm {i}}{8\,d^3}\right )}^{1/3}+\ln \left (a\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}\,1{}\mathrm {i}-b\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}+d\,{\left (\frac {{\left (-b+a\,1{}\mathrm {i}\right )}^4\,1{}\mathrm {i}}{d^3}\right )}^{1/3}\right )\,{\left (\frac {a^4\,1{}\mathrm {i}-4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}+4\,a\,b^3+b^4\,1{}\mathrm {i}}{8\,d^3}\right )}^{1/3}+\ln \left (-\frac {486\,b^4\,{\left (a^2+b^2\right )}^2\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}\,\left (a^4-6\,a^2\,b^2+b^4\right )}{d^4}+\frac {b^4\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (a-b\,1{}\mathrm {i}\right )}^2\,{\left (\frac {{\left (-b+a\,1{}\mathrm {i}\right )}^4\,1{}\mathrm {i}}{d^3}\right )}^{1/3}\,\left (a^5+a^4\,b\,1{}\mathrm {i}-6\,a^3\,b^2-a^2\,b^3\,6{}\mathrm {i}+a\,b^4+b^5\,1{}\mathrm {i}\right )\,486{}\mathrm {i}}{d^3}\right )\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (\frac {a^4\,1{}\mathrm {i}-4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}+4\,a\,b^3+b^4\,1{}\mathrm {i}}{8\,d^3}\right )}^{1/3}-\ln \left (\frac {486\,b^4\,{\left (a^2+b^2\right )}^2\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}\,\left (a^4-6\,a^2\,b^2+b^4\right )}{d^4}+\frac {b^4\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (a-b\,1{}\mathrm {i}\right )}^2\,{\left (\frac {{\left (-b+a\,1{}\mathrm {i}\right )}^4\,1{}\mathrm {i}}{d^3}\right )}^{1/3}\,\left (a^5+a^4\,b\,1{}\mathrm {i}-6\,a^3\,b^2-a^2\,b^3\,6{}\mathrm {i}+a\,b^4+b^5\,1{}\mathrm {i}\right )\,486{}\mathrm {i}}{d^3}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (\frac {a^4\,1{}\mathrm {i}-4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}+4\,a\,b^3+b^4\,1{}\mathrm {i}}{8\,d^3}\right )}^{1/3}+\frac {3\,b\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}}{d}+\ln \left (-\frac {486\,b^4\,{\left (a^2+b^2\right )}^2\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}\,\left (a^4-6\,a^2\,b^2+b^4\right )}{d^4}-\frac {486\,b^4\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (a+b\,1{}\mathrm {i}\right )}^2\,{\left (-\frac {{\left (a-b\,1{}\mathrm {i}\right )}^4\,1{}\mathrm {i}}{d^3}\right )}^{1/3}\,\left (a^5\,1{}\mathrm {i}+a^4\,b-a^3\,b^2\,6{}\mathrm {i}-6\,a^2\,b^3+a\,b^4\,1{}\mathrm {i}+b^5\right )}{d^3}\right )\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (-\frac {a^4\,1{}\mathrm {i}+4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}-4\,a\,b^3+b^4\,1{}\mathrm {i}}{8\,d^3}\right )}^{1/3}-\ln \left (\frac {486\,b^4\,{\left (a^2+b^2\right )}^2\,{\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )}^{1/3}\,\left (a^4-6\,a^2\,b^2+b^4\right )}{d^4}-\frac {486\,b^4\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (a+b\,1{}\mathrm {i}\right )}^2\,{\left (-\frac {{\left (a-b\,1{}\mathrm {i}\right )}^4\,1{}\mathrm {i}}{d^3}\right )}^{1/3}\,\left (a^5\,1{}\mathrm {i}+a^4\,b-a^3\,b^2\,6{}\mathrm {i}-6\,a^2\,b^3+a\,b^4\,1{}\mathrm {i}+b^5\right )}{d^3}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,{\left (-\frac {a^4\,1{}\mathrm {i}+4\,a^3\,b-a^2\,b^2\,6{}\mathrm {i}-4\,a\,b^3+b^4\,1{}\mathrm {i}}{8\,d^3}\right )}^{1/3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________